﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true" CodeBehind="operatoredit.aspx.cs" Inherits="Web.group.operatoredit" %>
<%@ Register Src="~/controls/message.ascx" TagName="message" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GVPageManager.ascx" TagPrefix="ui" TagName="gv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function ChangeBOSelector() {
            var val = $("#ContentPlaceHolder1_chkIsBOOper").attr("checked");

            if (!val) {
                $("#ContentPlaceHolder1_ddlBO").attr("disabled", "disabled");
            }
            else {
                $("#ContentPlaceHolder1_ddlBO").removeAttr("disabled");
            }
        }
    </script>
    <form id="form1" runat="server">
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>
                    管理员维护</h3>
                <ul class="content-box-tabs">
                    <li><a id="a_tab1" href="operator.aspx">管理员维护</a></li>
                    <li><a id="a_tab2" href="#tab2" class="default-tab">编辑管理员</a></li>
                </ul>
                <div class="clear">
                </div>
            </div>
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab2">
                <div class="form">
                        <fieldset>
                            <uc:message ID="u_message" Visible="false" runat="server" />
                            <p>
                                <label>
                                    请填写用户名</label>
                                <asp:TextBox ID="txb_username" CssClass="text-input small-input" runat="server" ReadOnly="true"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    请填写昵称</label>
                                <asp:TextBox ID="txb_nickname" CssClass="text-input small-input" runat="server"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    请选择一个角色</label>
                                <asp:DropDownList ID="ddl_roleid" runat="server" CssClass="small-input">
                                </asp:DropDownList>
                            </p>
                            <p>
                                <label>
                                    请填写密码</label>
                                <asp:TextBox ID="txb_userpwd" CssClass="text-input small-input" runat="server" TextMode="Password"></asp:TextBox>
                            </p>
                            <p>
                                <label>
                                    请再次填写密码</label>
                                <asp:TextBox ID="txb_userpwd2" CssClass="text-input small-input" runat="server" TextMode="Password"></asp:TextBox>
                                <br /><small>与第一次输入的密钥一致</small>
                            </p>
                            <p>
                                <label>
                                    是否公司管理员</label>
                                <asp:CheckBox ID="chkIsBOOper" runat="server" onclick="ChangeBOSelector(this.value)" />
                                <br />
                                <small>如果是公司管理员请选中此项</small>
                            </p>
                            <p>
                                <label>
                                    请选择所属分公司</label>
                                <asp:DropDownList ID="ddlBO" runat="server" CssClass="small-input" >
                                    <asp:ListItem Value="-1" Text="请选择分公司"></asp:ListItem>
                                </asp:DropDownList>
                                <br />
                                <small>如果为分公司管理员，需选择所属的分公司</small>
                            </p>
                            <p>
                                <asp:Button ID="btn_save" CssClass="button" runat="server" Text="提交" OnClick="btn_save_Click" />
                        </fieldset>
                        <div class="clear">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</asp:Content>
